import Base from '../../static/js/base'
class EditLocation extends Base{
	constructor() {
		super();
	}
	//获取省市区
	get_area(pid,callBack) {
		var that = this;
		var params = {
		  url: 'site/get_area',
		  data:{
			  pid:pid
		  },
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
	//地址编辑页面数据
	get_list_info(id,callBack) {
		var that = this;
		var params = {
		  url: 'site/get_list_info',
		  data:{
			  id:id
		  },
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
	//地址编辑
	edit_site(data,callBack) {
		var that = this;
		var params = {
		  url: 'site/edit_site',
		  data:data,
		  method:'PUT',
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
}

export default EditLocation	